user= 'root'
pwd= 'root'

def login():
    for i in range(3):
        input_user = input('Please input user: ')
        input_pwd = input('Please input pwd: ')
        if input_user == user and input_pwd == pwd:
            print('登录成功!')
            break
        else:
            print('用户名或者密码输入错误。。')

login()


# 做得不错
